package com.alog.storage.domain;

import android.databinding.BaseObservable;
import android.databinding.Bindable;
import com.alog.storage.BR;

public class User extends BaseObservable {
    private long userId;
    private String name;
    private String sex;
    private String adress;

    public User(long userId, String name, String sex, String adress) {
        this.userId = userId;
        this.name = name;
        this.sex = sex;
        this.adress = adress;
    }

    @Bindable
    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
        notifyPropertyChanged(BR.userId);
    }

    @Bindable
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
        notifyPropertyChanged(BR.name);
    }

    @Bindable
    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
        notifyPropertyChanged(BR.sex);
    }

    @Bindable
    public String getAdress() {
        return adress;
    }

    public void setAdress(String adress) {
        this.adress = adress;
        notifyPropertyChanged(BR.adress);
    }

}
